package it.slothy.noveleditor.enumaration;

import it.slothy.noveleditor.classes.elements.VNObject;

import java.util.HashMap;

public enum VNEnumObject {

	OBJ_ACTOR(1, "Actor"),
	OBJ_PERIOD(2, "Period"),
	OBJ_POSITION(3, "Position"),
	OBJ_STATISTIC(4, "Statistic"),
	OBJ_PLACE(5, "Place"),
	OBJ_ITEM(6, "Item"),
	OBJ_PLACE_ACT(7, "PlaceAct"),
	OBJ_RARITY(8, "Rarity"),
	OBJ_SWITCH(9, "Switch"),
	OBJ_QUEST(10, "Quest"),
	OBJ_MUSIC(11, "Music");
	
	private int id;
	private String name;
	
	private VNEnumObject(int id, String name) {
		this.id = id;
		this.name = name;
		
		//Creo la lista relativa nella classe in oggetto
		VNObject.objects.put(this, new HashMap<String, VNObject>());
	}

	public int getId() {
		return id;
	}

	public String getName() {
		return name;
	}
	
}
